package org.yefei.homeworkday17.four;

//智能机
public class AptitudeHandSet extends Set implements Surfing, PlayVideo, TakePhoto {

	public AptitudeHandSet(String brand, String type) {
		super(brand, type);
	}

//实现抽象类
	@Override
	public void sellMessage() {
		System.out.println(super.getBrand() + super.getType() + "也可以发短信！");

	}

	@Override
	public void call() {
		System.out.println(super.getBrand() + super.getType() + "也可以打电话！");
	}

//实现接口
	@Override
	public void takePhoto() {
		System.out.println(super.getBrand() + super.getType() + "还可以拍照片！");
	}

	@Override
	public void playVideo() {
		System.out.println(super.getBrand() + super.getType() + "还可以放视频！");

	}

	@Override
	public void surfing() {
		System.out.println(super.getBrand() + super.getType() + "还可以上网！");

	}

}
